package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanStatusInfo;

import okhttp3.RequestBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;

/**
 * Created by blade on 2016/11/15.
 */

public interface EditUserProfileRequest {

    @FormUrlEncoded
    @POST("User/user_update_nickname")
    Observable<BeanStatusInfo> updataNickName(@Field("nickname") String nickName);

    @FormUrlEncoded
    @POST("User/user_update_sex")
    Observable<BeanStatusInfo> updataSex(@Field("sex") String sex);

    @FormUrlEncoded
    @POST("User/user_update_birth")
    Observable<BeanStatusInfo> updataBirth(@Field("birth") String birth);

    @Multipart
    @POST("User/user_update_head")
    Observable<BeanStatusInfo> updateHeadPic(@Part("file\"; filename=\"img.png\"") RequestBody file);

}
